package com.cys.conterllor;

import cn.cys.service.IpCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: yiShan chen
 * @Date: 2023/3/31 11:56
 */
@RestController
@RequestMapping("/users")
public class UserConterllor {

    @Autowired
    private IpCountService ipCountService;

    @GetMapping
    public String getUser() {
        ipCountService.count();
        return "user";
    }

}
